<template>
  <el-aside width="200px">
    <el-menu default-active="2" class="el-menu-vertical-demo" router>
       <!-- 无子集 -->
      <el-menu-item index="/index">
        <i class="el-icon-menu"></i>
        <span slot="title">首页</span>
      </el-menu-item>
       <!-- 无子集 -->
      <el-menu-item index="/stats">
        <i class="el-icon-menu"></i>
        <span slot="title">数据管理</span>
      </el-menu-item>
      
      <!-- 有子集 -->
      <el-submenu index="/wms">
        <template slot="title">
          <i class="el-icon-menu"></i>信息管理</template>
        <el-menu-item index="/wms/list">列表管理</el-menu-item>
      </el-submenu>

      <!-- 有子集 -->
      <el-submenu index="/user">
        <template slot="title">
          <i class="el-icon-menu"></i>用户管理</template>
        <el-menu-item index="/user/stats">用户统计</el-menu-item>
        <el-menu-item index="/user/role">角色管理</el-menu-item>
      </el-submenu>
    </el-menu>

  </el-aside>
</template>
<script>
export default {
  data() {
    return {

    }
  },
  methods: {

  }
}
</script>

<style>
.el-header,
.el-footer {
  background-color: #B3C0D1;
  color: #333;
  text-align: center;
  line-height: 60px;
}

.el-aside {
  background-color: #D3DCE6;
  color: #333;
  text-align: center;
  line-height: 200px;
}

.el-main {
  background-color: #E9EEF3;
  color: #333;
  text-align: center;
  line-height: 160px;
}

body>.el-container {
  margin-bottom: 40px;
}

.el-container:nth-child(5) .el-aside,
.el-container:nth-child(6) .el-aside {
  line-height: 260px;
}

.el-container:nth-child(7) .el-aside {
  line-height: 320px;
}
</style>